package com.hbnu.system.model.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class ChildrenNameId extends NameId implements Serializable {
    private static final long serialVersionUID = 1L;

    private List<NameId> children;

    public ChildrenNameId(String label,Integer value){
        super.setLabel(label);
        super.setValue(value.intValue());
        children = new ArrayList<>();
    }


    public ChildrenNameId(){

    }

    public List<NameId> getChildren() {
        return children;
    }
    public void setChildren(List<NameId> children) {
        this.children = children;
    }
    @Override
    public String toString() {
        return "ChildrenNameId{" +
                super.toString() +
                "children=" + children +
                '}';
    }
}